﻿<UserControl
    x:Class="LenovoLegionToolkit.WPF.Controls.KeyboardBacklight.Spectrum.Device.SpectrumKeyboardANSIControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:LenovoLegionToolkit.WPF.Controls.KeyboardBacklight.Spectrum.Device">

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <StackPanel
            Grid.Row="0"
            Grid.Column="0"
            Orientation="Horizontal">
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x01" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x02" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x03" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x04" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x05" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x06" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x07" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x08" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x09" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0A" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0B" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0C" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0D" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0E" />
            <controls:SpectrumZoneControl
                Width="28"
                Height="24"
                Margin="2"
                KeyCode="0x0F" />
            <controls:SpectrumZoneControl
                Width="32"
                Height="24"
                Margin="2"
                KeyCode="0x10" />
        </StackPanel>

        <StackPanel
            Grid.Row="0"
            Grid.Column="1"
            Orientation="Horizontal">
            <controls:SpectrumZoneControl
                Width="32"
                Height="24"
                Margin="2"
                KeyCode="0x11" />
            <controls:SpectrumZoneControl
                Width="32"
                Height="24"
                Margin="2"
                KeyCode="0x12" />
            <controls:SpectrumZoneControl
                Width="32"
                Height="24"
                Margin="2"
                KeyCode="0x13" />
            <controls:SpectrumZoneControl
                Width="32"
                Height="24"
                Margin="2"
                KeyCode="0x14" />
        </StackPanel>

        <Grid Grid.Row="1" Grid.Column="0">

            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="24"
                    Height="32"
                    Margin="2"
                    KeyCode="0x16" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x17" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x18" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x19" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1A" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1B" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1C" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1D" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1E" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x1F" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x20" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x21" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x22" />
                <controls:SpectrumZoneControl
                    Width="52"
                    Height="32"
                    Margin="2"
                    KeyCode="0x38" />
            </StackPanel>

            <StackPanel Grid.Row="1" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="44"
                    Height="32"
                    Margin="2"
                    KeyCode="0x40" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x42" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x43" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x44" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x45" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x46" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x47" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x48" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x49" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x4A" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x4B" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x4C" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x4D" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x4E" />
            </StackPanel>

            <StackPanel Grid.Row="2" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="56"
                    Height="32"
                    Margin="2"
                    KeyCode="0x55" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x6D" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x6E" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x58" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x59" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x5A" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x71" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x72" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x5B" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x5C" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x5D" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x5F" />
                <controls:SpectrumZoneControl
                    Width="56"
                    Height="32"
                    Margin="2"
                    KeyCode="0x77" />
            </StackPanel>

            <StackPanel Grid.Row="3" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="74"
                    Height="32"
                    Margin="2"
                    KeyCode="0x6A" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x82" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x83" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x6F" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x70" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x87" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x88" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x73" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x74" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x75" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x76" />
                <controls:SpectrumZoneControl
                    Width="74"
                    Height="32"
                    Margin="2"
                    KeyCode="0x8D" />
            </StackPanel>

            <StackPanel Grid.Row="4" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="38"
                    Height="32"
                    Margin="2"
                    KeyCode="0x7F" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x80" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x96" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x97" />
                <controls:SpectrumZoneControl
                    Width="176"
                    Height="32"
                    Margin="2"
                    KeyCode="0x98" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x9A" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x9B" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    Visibility="Hidden" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x9D" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    Visibility="Hidden" />
            </StackPanel>

            <StackPanel Grid.Row="5" Orientation="Horizontal">
                <controls:SpectrumZoneControl
                    Width="398"
                    Height="32"
                    Margin="2"
                    Visibility="Hidden" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x9C" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0x9F" />
                <controls:SpectrumZoneControl
                    Width="32"
                    Height="32"
                    Margin="2"
                    KeyCode="0xA1" />
            </StackPanel>

        </Grid>

        <Grid Grid.Row="1" Grid.Column="1">

            <Grid.RowDefinitions>
                <RowDefinition Height="36" />
                <RowDefinition Height="36" />
                <RowDefinition Height="36" />
                <RowDefinition Height="36" />
                <RowDefinition Height="36" />
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="36" />
                <ColumnDefinition Width="36" />
                <ColumnDefinition Width="36" />
                <ColumnDefinition Width="36" />
            </Grid.ColumnDefinitions>

            <controls:SpectrumZoneControl
                Grid.Row="0"
                Grid.Column="0"
                Margin="2"
                KeyCode="0x26" />
            <controls:SpectrumZoneControl
                Grid.Row="0"
                Grid.Column="1"
                Margin="2"
                KeyCode="0x27" />
            <controls:SpectrumZoneControl
                Grid.Row="0"
                Grid.Column="2"
                Margin="2"
                KeyCode="0x28" />
            <controls:SpectrumZoneControl
                Grid.Row="0"
                Grid.Column="3"
                Margin="2"
                KeyCode="0x29" />

            <controls:SpectrumZoneControl
                Grid.Row="1"
                Grid.Column="0"
                Margin="2"
                KeyCode="0x4F" />
            <controls:SpectrumZoneControl
                Grid.Row="1"
                Grid.Column="1"
                Margin="2"
                KeyCode="0x50" />
            <controls:SpectrumZoneControl
                Grid.Row="1"
                Grid.Column="2"
                Margin="2"
                KeyCode="0x51" />
            <controls:SpectrumZoneControl
                Grid.Row="1"
                Grid.RowSpan="2"
                Grid.Column="3"
                Margin="2"
                KeyCode="0x68" />

            <controls:SpectrumZoneControl
                Grid.Row="2"
                Grid.Column="0"
                Margin="2"
                KeyCode="0x79" />
            <controls:SpectrumZoneControl
                Grid.Row="2"
                Grid.Column="1"
                Margin="2"
                KeyCode="0x7B" />
            <controls:SpectrumZoneControl
                Grid.Row="2"
                Grid.Column="2"
                Margin="2"
                KeyCode="0x7C" />

            <controls:SpectrumZoneControl
                Grid.Row="3"
                Grid.Column="0"
                Margin="2"
                KeyCode="0x8E" />
            <controls:SpectrumZoneControl
                Grid.Row="3"
                Grid.Column="1"
                Margin="2"
                KeyCode="0x90" />
            <controls:SpectrumZoneControl
                Grid.Row="3"
                Grid.Column="2"
                Margin="2"
                KeyCode="0x92" />
            <controls:SpectrumZoneControl
                Grid.Row="3"
                Grid.RowSpan="2"
                Grid.Column="3"
                Margin="2"
                KeyCode="0xA7" />

            <controls:SpectrumZoneControl
                Grid.Row="4"
                Grid.Column="0"
                Grid.ColumnSpan="2"
                Margin="2"
                KeyCode="0xA3" />
            <controls:SpectrumZoneControl
                Grid.Row="4"
                Grid.Column="2"
                Margin="2"
                KeyCode="0xA5" />
        </Grid>

    </Grid>

</UserControl>
